-- GENERATED SPELL FOR [Dark Rune Watcher] --


function spell0_33453(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(64758,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33453', 1500, 1)
end

function spell1_33453(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(64759,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33453', 1500, 1)
end

function spell2_33453(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(63809,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33453', 2000, 1)
end

function spell3_33453(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(64696,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33453', 2000, 1)
end

function Sorts_33453(pUnit, Event)
local choix_sorts_33453 = math.random(0, 3)
if choix_sorts_33453 == 0 then
pUnit:RegisterEvent('spell0_33453', 1, 1)
end
if choix_sorts_33453 == 1 then
pUnit:RegisterEvent('spell1_33453', 1, 1)
end
if choix_sorts_33453 == 2 then
pUnit:RegisterEvent('spell2_33453', 1, 1)
end
if choix_sorts_33453 == 3 then
pUnit:RegisterEvent('spell3_33453', 1, 1)
end
end

function mob33453_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33453', math.random(1500, 3000), 1)
end

function mob33453_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33453_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33453_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33453, 1, 'mob33453_Action')
RegisterUnitEvent(33453, 2, 'mob33453_Leave')
RegisterUnitEvent(33453, 3, 'mob33453_Kill')
RegisterUnitEvent(33453, 4, 'mob33453_Die')
